package com.team.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 这里是值班人员实体类
 * @author 陈福桔
 *
 */
@Entity
@Table(name="DutyOfficer")
public class DutyOfficer{
    private Integer id;
	private String dutyName;//值班人员姓名
	private String telephone;//值班人员号码
	private String dutyTime;//值班时间
	private String room;
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getDutyName() {
		return dutyName;
	}
	public void setDutyName(String dutyName) {
		this.dutyName = dutyName;
	}
	public String getTelephone() {
		return telephone;
	}
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	public String getDutyTime() {
		return dutyTime;
	}
	public void setDutyTime(String dutyTime) {
		this.dutyTime = dutyTime;
	}
	public String getRoom() {
		return room;
	}
	public void setRoom(String room) {
		this.room = room;
	}
	@Override
	public String toString() {
		return "DutyOfficer [id=" + id + ", dutyName=" + dutyName + ", telephone=" + telephone + ", dutyTime="
				+ dutyTime + ", room=" + room + "]";
	}
	
	
}
